home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Night Owl 9
/
Night Owl CD-ROM (NOPV9) (Night Owl Publisher) (1993).ISO
/
050a
/
fold30.zip
/
FOLDADD.DOC
< prev
next >
Wrap
Text File
|
1993-01-31
|
8KB
|
263 lines
FOLD-and-PRINT
version 3.0
Appendix to User's Manual
(C) Konrad Budych 1989-93
This appendix does not contain vital information that you need to run
FOLD-and-PRINT. It contains information that I always hate reading in other
people's manuals. Please have a look at FOLD.DOC first, and after you have
done that, you may come back here...
DISCLAIMER
==========
FOLD-and-PRINT is supplied as is. The author disclaims all warranties,
expressed or implied, including, without limitation, the warranties of
merchantability and of fitness for any purpose. The author assumes no
liability for any damages, direct or consequential, which may result from the
use of, or inability to use FOLD-and-PRINT.
WHERE TO BUY FOLD-and-PRINT?
============================
Nowhere. FOLD-and-PRINT is free. I wrote it for myself, but now I
think more people can enjoy and make use of it. You may give FOLD-and-PRINT
away to your friends, but you are not permitted to sell or modify it. If you
distribute FOLD-and-PRINT, please distribute the original, unmodified archive
file.
If you think this program is great and worth contributing, please send
something to the author (diskettes, money, postcards, your programs, etc.).
You can contact the author via e-mail or via snail mail using the following
addresses:
Snail mail address:
Konrad Budych
os.Boh.Wrzesnia 24/67
31-621 Krakow, Poland
Internet address:
kbudych@ii.uj.edu.pl
Very strange things often happen to ii.uj.edu.pl host so do not give
up easily when you get no answer!
ACKNOWLEDGEMENTS
================
I would like to thank Jerzy Jamski, Jerzy Polczynski, and Krzysztof
Dziechciarz for testing FOLD-and-PRINT, and especially to Edgar W. Swank for
some suggestions and 'debugging' the manual.
REVISION HISTORY
================
The history of FOLD-and-PRINT is long and interesting.
VERSIONS 1.0 thru 1.3
---------------------
The first version of this program was running under CP/M-80. It was
written in Turbo Pascal 3.0 (!). There were two parts: one which reformatted
input file into another file; the second part printed that file. All
necessary parameters had to be entered each time the program was run. Printer
control codes were located inside the program and could not be changed without
the recompilation of the source code as I used only one printer.
The first part, which created the reformatted file, could also act on
the WordStar 3.0 document files.
VERSIONS 2.0A thru 2.0J
-----------------------
The version 2.0 was written with the use of Turbo Vision library in
Turbo Pascal 6.0. This program was a 'concatenation' of the previous two.
All parameters could be set in the program and the configuration could be
saved. Several sets of control codes were still inside the program and only
ESC/P compatible printers could be used.
There was a possibility of printing selected pages and truncating
lines. An input file still was first formatted into temporary file which was
then printed. It sometimes took a while to reformat a long text.
A lot of keys has to be pressed to start printing.
VERSIONS 2.91 thru 2.98
-----------------------
As I found that I always use only two print modes, I thought of the
separate configuration files for each of them. A command line utility was the
next idea. A word wrap looks great when there are broken lines and the text
is not a source code. Printing separately odd and even pages was necessary as
I started using a printer with the sheet feeder. Printing each line few times
was a great idea when I was forced to use printers with the very weak ribbons.
FOLD-and-PRINT only reads now an input file: no temporary file is
created. This saves a lot of time: the page is reformatted and immediately
printed; the program prepares the next page while the previous one is being
printed. The text is read once if no analysis is performed, however if you
want to know how many pages the text will have, it has to be read twice and
the text analysis has to be performed.
All necessary printer information is now in the printer definition
file. This allows (probably) all printers to be used.
Version 2.91 thru 2.98 were all pre-release versions of 3.0. They
were not widely distributed, but were still improved. The suggestion form a
number of people shaped FOLD-and-PRINT into its final form.
VERSION 3.0
-----------
This version was the first to be widely distributed.
FUTURE VERSIONS
---------------
I think it is not history yet, but this is the best place to inform
you about the future (of FOLD-and-PRINT).
I cannot promise that there ever will be any future version of
FOLD-and-PRINT, but I am afraid that there will. I have improved this program for
more than 3 years (for a few days each year...), to add something I need, remove
something I dislike, etc. I already have some new ideas that may
influence the future of FOLD-and-PRINT but nothing is certain...
EXIT CODES AND ERRORS
=====================
If you are interested what exit codes FOLD-and-PRINT returns, here is
the brief list:
0 - everything was okay, the text has been printed
1 - the help screen has been displayed
2 - there were problems with command line parameters or FOLD variable
4 - there were problems with the printer configuration file
5 - there were problems with the input file
6 - there were problems with the output file or the printer
9 - [ESC] has been pressed
And here you have the list of all possible error messages and the
short descriptions of them:
Invalid digit after 'b'.
Invalid number after 'f'.
Invalid number after 'l'.
Invalid number after 's'.
The number specified after the switch is not a valid decimal number.
Only one digit is allowed after 'b'.
Invalid data in printer definition file 'FILE.EXT'.
Invalid hex code in printer definition file 'FILE.EXT'.
Invalid number in printer definition file 'FILE.EXT'.
Invalid structure of printer definition file 'FILE.EXT'.
The printer configuration file is invalid: contains invalid number of
entries or/and invalid entries or/and the heading or/and ending is
missing. Please refer to the user's manual for the detailed
description of this file.
Invalid switch: '-Z'.
The switch ('Z' in the example) is unknown and has no meaning.
Missing file name in command line.
You have not given any file name in the command line. If the name of
the file you want to print begins with '-', use '-' before.
No pages to print.
You have specified an invalid range of pages to print. For example:
'-f10 -t5' or both 'e' and 'o' switch are on.
No printable text in input file 'FILE.EXT'.
The file to be printed is empty. This is detected only in the text
analyzis mode.
Non-printable character(s) in text.
The text to print cannot contain control characters.
Not enough memory to allocate page buffer.
There is not enough memory for FOLD-and-PRINT to work in the specified
mode. Remove some TSRs and retry.
Too long printer control sequence.
The printer control sequences must not be longer than 128 characters.
Too many columns specified for this paper width.
The page is too narrow or/and the number of columns is too big.
Too many files specified in command line.
You can specify only one file to print in the command line.
Unable to open configuration file 'FILE.EXT'.
The printer configuration file should be located in the current
directory or in the FOLD.EXE home directory.
Unable to open input file 'FILE.EXT'.
The file to be printed is missing or/and has another name.
Unable to open output file 'FILE.EXT'.
The output file cannot be opened / created. This can happen only if
you tell FOLD-and-PRINT to print to the file.
Unable to print.
FOLD-and-PRINT encountered problems with a printer while printing.
End of Appendix to User's Manual
********************************